﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace Automted_Bank_teller
{
    class DatabaseConnection
    {
        public SqlConnection connect = new SqlConnection();
        public SqlCommand cmd = new SqlCommand();

        public void Database_ConnectString()
        {
            connect.ConnectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Hamada\Documents\Visual Studio 2010\Projects\Automted Bank teller\Automted Bank teller\Bank_Database.mdf;Integrated Security=True;User Instance=True";
            cmd.Connection = connect;
        }

        public void Open_Database()
        {
            connect.Open();
        }


        public void Close_Database()
        {
            connect.Close();
        }





    }
}
